package com.smedi.ismedi.personnel.core.infrastructure.schedule.impl;

import com.smedi.ismedi.personnel.core.application.service.ScheduleApplicationService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@AllArgsConstructor
public class ApplicationRunnerImpl implements ApplicationRunner {
    private final ScheduleApplicationService scheduleApplicationService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 关闭自动同步功能
        // TODO 待研究为何会把服务充挂了。
        // scheduleApplicationService.runSync();
    }
}